export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  // labelWidth: 110,//设置列名称长度
  // searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "商品id",
      prop: "id",
      type: "input",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "商户Id",
      prop: "merId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择商户Id',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "商品图片",
      prop: "image",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择商品图片',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "展示图",
      prop: "flatPattern",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择展示图',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "轮播图",
      prop: "sliderImage",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择轮播图',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "商品名称",
      prop: "name",
      type: "input",
      search: true,
      rules: [
        {
          required: true,
          message: '请选择商品名称',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "商品简介",
      prop: "intro",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择商品简介',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "关键字,英文逗号拼接",
      prop: "keyword",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择关键字,英文逗号拼接',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "商户分类id(逗号拼接)",
      prop: "cateId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择商户分类id(逗号拼接)',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "品牌id",
      prop: "brandId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择品牌id',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "平台分类id",
      prop: "categoryId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择平台分类id',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "保障服务ids(英文逗号拼接)",
      prop: "guaranteeIds",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择保障服务ids(英文逗号拼接)',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "商品价格",
      prop: "price",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择商品价格',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "会员价格",
      prop: "vipPrice",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择会员价格',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "市场价",
      prop: "otPrice",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择市场价',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "单位名",
      prop: "unitName",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择单位名',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "销量",
      prop: "sales",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择销量',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "库存",
      prop: "stock",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择库存',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "成本价",
      prop: "cost",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择成本价',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "虚拟销量",
      prop: "ficti",
      type: "input",
      span: 12
    },
    {
      label: "浏览量",
      prop: "browse",
      type: "input",
      span: 12
    },
    {
      label: "商品二维码地址",
      placeholder: "商品二维码地址(用户小程序海报)",
      prop: "codePath",
      type: "input",
      span: 12
    },
    {
      label: "淘宝京东1688类型",
      prop: "soureLink",
      type: "input",
      span: 12
    },
    {
      label: "主图视频链接",
      prop: "videoLink",
      type: "input",
      span: 12
    },
    {
      label: "运费模板ID",
      prop: "tempId",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择运费模板ID',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "排序",
      prop: "sortOrder",
      type: "input",
      value: 1,
      rules: [
        {
          required: true,
          message: '请选择排序',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "总后台排序",
      prop: "rank",
      type: "input",
      value: 1,
      rules: [
        {
          required: true,
          message: '请选择总后台排序',
          trigger: 'blur'
        }
      ],
      span: 12
    },
    {
      label: "规格 0 1",
      prop: "specType",
      type: "ridio",
      dicData: [{
        label: '多',
        value: 1
      }, {
        label: '单',
        value: 0
      }],
      value: 0
    },
    {
      label: "是否回收站",
      prop: "isRecycle",
      type: "ridio",
      dicData: [{
        label: '是',
        value: true
      }, {
        label: '否',
        value: false
      }],
      value: true
    },
    {
      label: "是否单独分佣",
      prop: "isSub",
      type: "ridio",
      dicData: [{
        label: '是',
        value: true
      }, {
        label: '否',
        value: false
      }],
      value: true
    },
    {
      label: "状态",
      prop: "isShow",
      type: "ridio",
      dicData: [{
        label: '上架',
        value: 1
      }, {
        label: '未上架',
        value: 0
      }],
      value: 1
    },
    {
      label: "审核状态",
      prop: "auditStatus",
      type: "ridio",
      dicData: [{
        label: '待审核',
        value: 1
      }, {
        label: '审核成功',
        value: 2
      }, {
        label: '审核拒绝',
        value: 3
      }, {
        label: '无需审核',
        value: 0
      }],
      value: 0
    },
    {
      label: "是否加入审核",
      prop: "isAudit",
      type: "ridio",
      dicData: [{
        label: '审核流程中',
        value: 1
      }, {
        label: '正常',
        value: 0
      }],
      value: 0
    },
    {
      label: "拒绝原因",
      prop: "reason",
      type: "input",
      rules: [
        {
          required: true,
          message: '请选择拒绝原因',
          trigger: 'blur'
        }
      ],
      span: 12
    },
  ]
}
